
<?php

$client  = new SoapClient('http://www.webservicex.net/globalweather.asmx?wsdl');
$params = array(
    'CityName' => 'Warszawa',
    'CountryName' =>'Poland'
    
);
$result= $client->GetWeather( $params);

print_r($result);


$url = 'http://www.webservicex.net/globalweather.asmx?WSDL';
$ser_params = array (
    'GetWeather' => array (
        "CityName" => "Warszawa",
        "CountryName" => "Poland"
    )
);


echo'<br>';
echo'<br>';
echo'<br>';
echo'<br>';
$client = new SoapClient($url);
$result = $client->__soapCall('GetWeather', $ser_params)->GetWeatherResult;
$result = str_replace('utf-16', 'utf-8', $result);

xdebug_var_dump(simplexml_load_string($result));
?>